package com.hxgz.steel.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class ProductCommentsDto {

    private Long id;

    @ApiModelProperty("用户姓名")
    private String realName;

    @ApiModelProperty("用户头像")
    private String headpic;

    @ApiModelProperty("评分（星星数）")
    private Integer grade;

    @ApiModelProperty("评论内容")
    private String comment;

    @ApiModelProperty("型号")
    private String type;

    @ApiModelProperty("颜色")
    private String color;

    @ApiModelProperty("时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
